<%@ page import="com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer" %><%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2023/3/14
  Time: 14:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Serve验证</title>
</head>
<body>
 <%
     String name=request.getParameter("username");
     String password=request.getParameter("pwd");
     System.out.println(name+password);
     if("zhangsan".equals(name)&&"123".equals(password))
     {
         out.print("成功登录，3秒钟后进入loginSuccess.jsp页面");
         response.setHeader("refresh","3;url=loginSuccess.jsp");
         return;
     }else{
         response.sendRedirect("login.jsp");
     }
     %>
</body>
</html>
